home *** CD-ROM | disk | FTP | other *** search
/ Painter Bear's Language Bridge — Italian / Bridge_ponte_itialian.iso / pc / xtras / -pmatic.dir / Internal_15_movie script.ls < prev    next >
Encoding:
Text File  |  1999-09-22  |  828 b   |  30 lines

  1. on startMovie
  2.   global gPropFont, gMonoFont, gCanPrint
  3.   if the machineType = 256 then
  4.     set gPropFont to "arial"
  5.     set gMonoFont to "courier new"
  6.   else
  7.     set gPropFont to "helvetica"
  8.     set gMonoFont to "courier"
  9.   end if
  10.   if isXtraInstalled("printomatic") then
  11.     set gCanPrint to 1
  12.   else
  13.     set gCanPrint to 0
  14.     alert("The PrintOMatic Xtra is not installed; printing is disabled." & RETURN & RETURN & "Please consult the Read Me file in the PrintOMatic folder for information on how to install PrintOMatic.")
  15.   end if
  16. end
  17.  
  18. on isXtraInstalled xtraName
  19.   if not stringp(xtraName) then
  20.     alert("isXtraInstalled() requires an Xtra name to work", 0.0)
  21.     return 0
  22.   end if
  23.   repeat with i = 1 to the number of xtras
  24.     if the name of xtra(i) = xtraName then
  25.       return 1
  26.     end if
  27.   end repeat
  28.   return 0
  29. end
  30.